package com.pet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pet.pojo.Topic;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TopicMapper extends BaseMapper<Topic> {

    @Select("select * from topic order by count desc limit 0,3")
    List<Topic> findHotTopicList();
}
